﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;

namespace EasyStudy.UI
{
    public partial class FrmExportExcel : KryptonForm
    {
        public FrmExportExcel()
        {
            InitializeComponent();

            this.txtDir.Text = Environment.CurrentDirectory;
        }

        private void btnOpen_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog folderBrowerDialog =
                new FolderBrowserDialog();
            folderBrowerDialog.ShowNewFolderButton = true;
            folderBrowerDialog.Description = "请选择要生成报告的位置";
            folderBrowerDialog.RootFolder = Environment.SpecialFolder.Desktop;
            
            if (folderBrowerDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.txtDir.Text = folderBrowerDialog.SelectedPath;
            }
        }

        private void btnExport_Click(object sender, EventArgs e)
        {

        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
